﻿using System;
using Pay.TO;

namespace Pay.Data {
	/// <summary>
	/// 支付方式
	/// </summary>
	public class Payment {
		public Payment() {
		}
		/// <summary>
		/// 支付方式id
		/// </summary>
		public long Id { get; set; }
		/// <summary>
		/// 签约通道的商户id
		/// </summary>
		public long MerchantId { get; set; }
		/// <summary>
		/// 通道
		/// </summary>
		public PayChannel Channel { get; set; }
		/// <summary>
		/// 支付名称
		/// </summary>
		public string Name { get; set; }
		/// <summary>
		/// 结算方式
		/// </summary>
		public string Settles { get; set; }
		/// <summary>
		/// 可用银行[{"name":"","code":""}]
		/// </summary>
		public string Bank { get; set; }
		/// <summary>
		/// 开始时间
		/// </summary>
		public int StartTime { get; set; }
		/// <summary>
		/// 结束时间
		/// </summary>
		public int EndTime { get; set; }
		/// <summary>
		/// 单笔额度,0不限
		/// </summary>
		public decimal SingleQuota { get; set; }
		/// <summary>
		/// 单卡额度/天,0不限
		/// </summary>
		public decimal CardQuota { get; set; }
		/// <summary>
		/// 是否关闭
		/// </summary>
		public bool IsOpen { get; set; }
		/// <summary>
		/// 是否要进件
		/// </summary>
		public bool IsRegister { get; set; }
		/// <summary>
		/// 是否可以进件多次
		/// </summary>
		public bool IsMore { get; set; }
	}
}
